package controllers

import "myApi/models"

type ProjectController struct {
	BaseController
}

func (this *ProjectController) AddPro()  {
	userId :=this.GetSession("sessionUserId")
	projectName := this.GetString("projectName")
	id:=models.GetSnowflakeId()
	dbConn.GetOne("insert into info_project(id,project_name,user_id,create_time) values(?,?,?,now())",id,projectName,userId)
	this.ApiSuccess("成功","true")
}
